<div class="layui-form" lay-filter="layuiadmin-form-recordadmin" style="padding: 20px 0 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">工作名称</label>
    <div class="layui-input-inline">
      <input type="text" name="recordName" placeholder="请输入工作名称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">发生时间</label>
    <div class="layui-input-inline">
      <input type="text" name="recordDate" id="recordDate" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">描述</label>
    <div class="layui-input-inline">
      <textarea name="recordMemo" placeholder="请输入描述" class="layui-textarea"></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-block">
      <button type="submit" lay-submit lay-filter="LAY-record-front-submit" class="layui-btn">确认</button>
      <button type="button" class="layui-btn layui-btn-primary" id="close-record-form">取消</button>
    </div>
  </div>
</div>

<script>
  layui.use(['admin','form','laydate'],function (){
    var $=layui.$
    ,form=layui.form
    ,laydate=layui.laydate
    ,layer=layui.layer;
    
    laydate.render({
      elem: '#recordDate',
      format: 'yyyy-MM-dd'
    });
  });
</script> 